html,
body,
#app {
	width: 100%;
	height: 100%;
	max-width: 100vw;
	overflow-x: hidden;
	box-sizing: border-box;
}

body {
	box-sizing: border-box;
	font-size: 16px;
	font-family: "Helvetica Neue", PingFang-SC-Regular, miui, Helvetica,
		sans-serif;
	user-select: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-overflow-scrolling: touch;
	-webkit-text-size-adjust: 100% !important;
}

div {
	-webkit-tap-highlight-color: transparent;
}

a {
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

input {
  padding-left: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  appearance: none;
}

input[type='text'],
input[type='number'],
input[type='email'],
input[type='tel'],
input[type='search'] {
  padding-top: 24rpx;
  padding-bottom: 24rpx;
}

taro-input-core.inline-input,
taro-input-core.inline-input .weui-input {
  padding-top: 24rpx;
  padding-bottom: 24rpx;
  line-height: 1.6;
  min-height: 72rpx;
  box-sizing: border-box;
}

/* 使 taro-input-core 中的原生 input 垂直居中（仅应用到 inline-input） */
taro-input-core.inline-input {
  display: flex;
  align-items: center;
}

taro-input-core.inline-input .weui-input {
  height: 72rpx;
  line-height: 72rpx;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  display: block;
}

/* 恢复单选/复选在 taro-input-core 中的默认尺寸，不受高度规则影响 */
taro-input-core .weui-input[type='radio'],
taro-input-core .weui-input[type='checkbox'] {
  height: auto;
  line-height: normal;
  padding: 0;
  min-height: auto;
}

page {
	font-size: 16px;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Helvetica Neue",
		Helvetica,
		Segoe UI,
		Arial,
		Roboto,
		"PingFang SC",
		"miui",
		"Hiragino Sans GB",
		"Microsoft Yahei",
		sans-serif;
}

// 解决iPhone x 以后的机型 底部安全区域的问题 https://jelly.jd.com/article/6006b1055b6c6a01506c87fd
.safe-area-bottom {
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-top {
	padding-top: constant(safe-area-inset-top);
	padding-top: env(safe-area-inset-top);
}

.layout-screen {
	min-height: calc(100vh - constant(safe-area-inset-bottom));
	min-height: calc(100vh - env(safe-area-inset-bottom));
}

.layout-tabbar-screen {
	min-height: calc(100vh - 50px - constant(safe-area-inset-bottom));
	min-height: calc(100vh - 50px - env(safe-area-inset-bottom));
}

.layout-tabbar-safe-bottom {
	padding-bottom: calc(50px + constant(safe-area-inset-bottom));
	padding-bottom: calc(50px + env(safe-area-inset-bottom));
}

.nut-theme-dark {
	color: var(--nut-dark-color, var(--nut-white, #fff));
}
.nut-tab-pane {
    width: 100%;
    flex-shrink: 0;
    display: block;
    background-color: #fff;
    padding: 10rpx 10rpx !important;
    box-sizing: border-box;
    overflow: auto;
    height: 100%;
    word-break: break-all;
}

/* 小程序webview适配 */
/* #ifdef MP-WEIXIN */
page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 确保所有容器不会超出屏幕宽度 */
view, text, image, button, input, textarea, scroll-view, swiper, swiper-item, navigator, picker, radio, checkbox, switch, slider, form, canvas, web-view, rich-text {
    max-width: 100%;
    box-sizing: border-box;
}

/* 防止固定宽度元素超出屏幕 */
// .w-\[750rpx\] {
//     width: 100% !important;
//     max-width: 750rpx !important;
//     margin: 0 auto !important;
// }

// .w-\[720rpx\] {
//     width: 100% !important;
//     max-width: 720rpx !important;
// }
/* #endif */
taro-button-core.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 88rpx;
  min-height: 88rpx;
  line-height: 1;
  padding: 0 32rpx;
  border-radius: 12rpx;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0;
}

taro-button-core.btn.btn-prev,
taro-button-core.btn.btn-next {
  height: 88rpx;
  min-height: 88rpx;
}
taro-view-core.nav-buttons,
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.nav-buttons taro-button-core.btn {
  height: 88rpx;
  min-height: 88rpx;
}

/* 日期显示容器统一不超出父级宽度 */
.date-display {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}
taro-text-core {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif !important;
}
/* 将箭头图标（三角形）高度缩小为当前的 70% */
.nutui-iconfont.nut-icon-arrow-up,
.nutui-iconfont.nut-icon-arrow-down {
  transform: scale(0.7);
  transform-origin: center;
}
.date-display taro-text-core.text-gray-400,
.datetime-display taro-text-core.text-gray-400,
.selector-arrow taro-text-core {
  display: inline-block;
  transform: scaleY(0.6);
  transform-origin: center;
}